package com.weitu.permission.authority.mapper;

 import com.weitu.permission.authority.entity.Authority;

import java.util.List;
import java.util.Map;

/**
 * Created by WT on 2017/3/18
 */
public interface AuthorityMapper {

    //根据id查询权限组
    Authority selectAuthorityById(String id);

    //根据code查询
    Authority selectByCode(String Code);

    //根据id删除权限组
    int deleteById(String id);

    //插入新权限组全部字段
    int insert(Authority authority);

    //选择性插入新权限组
    int insertSelective(Authority authority);

    // 根据id更新权限组
    int updateByIdSelective(Authority authority);

    //查询分页列表数据
    List< Authority> queryAuthorityList(Map map);

    // 查询列表总数量
    int queryTotalCount(Map map);
   //查询权限组下权限列表
    List< Authority> selectAuthorityByGroupId(String groupId);
    //根据角色ID获取权限
    List<Authority> queryAuthorityCheckedList(Map<String,Object> map);
}
